package com.lenovo.lcr.sil.wangdwa.learning;

import java.util.HashMap;

public class People {

	public static final String KEY1 = "NAME";
	public static final String KEY2 = "CONTACT_NO";
	
	HashMap<String, String> mData = new HashMap<String, String>();
	
	public People(String name, String contactNo) {
		mData.put(KEY1, name);
		mData.put(KEY2, contactNo);
		
	}

	public People(HashMap<String, String> data) {
		super();
		this.mData = data;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		String ret = "Name: " + mData.get(KEY1).toString() 
			+ " | " + "Number: " + mData.get(KEY2).toString();
		return ret;
	}
	
	public HashMap<String, String> getData() {
		return mData;
	}
	
}
